package com.bear.fastrepair.http.api.employee

import com.bear.fastrepair.entity.EmployeeUploadImage
import com.bear.fastrepair.entity.OrderImagesResponse
import com.bear.fastrepair.entity.ResponseInfo
import retrofit2.http.*

interface EmployeeImageService {
    /**
     * 新增订单图片
     * @param image EmployeeUploadImage
     * @return ResponseInfo
     */
    @POST("mobile/orderImageItem")
    suspend fun uploadImages(@Body image: EmployeeUploadImage): ResponseInfo

    /**
     * 通过服务订单ID获取图片
     * @param id String
     * @return OrderImagesResponse
     */
    @GET("mobile/orderImageItem/serviceOrderId/{id}")
    suspend fun getImagesById(@Path("id") id: String): OrderImagesResponse

    /**
     * 通过id删除订单图片
     * @param id String
     * @return ResponseInfo
     */
    @DELETE("mobile/orderImageItem/{id}")
    suspend fun deleteImagesById(@Path("id") id: String): ResponseInfo
}